@extends('layouts.app')

@section('title','我的收藏')

@section('content')
    <div class="row">
        <div class="col-lg-10 col-lg-offset-1">
            <div class="panel panel-default">
                <div class="panel-heading">我的收藏</div>
                <div class="panel-body">
                    <div class="row products-list">
                        @foreach($products as $product)
                            <div class="col-xs-3 product-item">
                                <div class="product-content">
                                    <div class="top">
                                        <div class="img">
                                            <a href="{{ route('products.show',['product' => $product->id]) }}">
                                                <img src="{{ $product->image_url }}" alt="">
                                            </a>
                                        </div>
                                        <div class="price">
                                            <b>￥</b>{{ $product->price }}
                                        </div>
                                        <a href="{{ route('products.show',['product' => $product->id]) }}">
                                            {{ $product->title }}
                                        </a>
                                    </div>
                                    <div class="bottom">
                                        <div class="sold_count">
                                            销量<span>{{ $product->sold_count }}笔</span>
                                        </div>
                                        <div class="review_count">
                                            评价<span>{{ $product->review_count }}</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        @endforeach
                    </div>
                    <div class="pull-right">{{ $products->render() }}</div>
                </div>
            </div>
        </div>
    </div>
@stop